package com.wanghlme.day29.util;

import java.util.Map;

public class ActionMapping {
    private String name;
    private String className;
    Map<String, ActionResult> resultMap;

    public ActionMapping() {
    }

    public ActionMapping(String name, String className, Map<String, ActionResult> resultMap) {
        this.name = name;
        this.className = className;
        this.resultMap = resultMap;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public Map<String, ActionResult> getResultMap() {
        return resultMap;
    }

    public void setResultMap(Map<String, ActionResult> resultMap) {
        this.resultMap = resultMap;
    }

    @Override
    public String toString() {
        return "ActionMapping{" +
                "name='" + name + '\'' +
                ", className='" + className + '\'' +
                ", resultMap=" + resultMap +
                '}';
    }
}
